package mta.localization;

/**
 * Created by Dmitry Nikolaev.
 * User: dima
 * Date: 19.01.2009
 * Time: 19:03:03
 */
public class ModulePhrase {
    private final String module;
    private final String phrase;

    public ModulePhrase(String module, String phrase) {
        this.module = module;
        this.phrase = phrase;
    }

    public String getModule() {
        return module;
    }

    public String getPhrase() {
        return phrase;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ModulePhrase that = (ModulePhrase) o;

        if (!module.equals(that.module)) return false;
        if (!phrase.equals(that.phrase)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = module.hashCode();
        result = 31 * result + phrase.hashCode();
        return result;
    }
}
